package cn.edu.scau.cmi.zhangjunming.composite.safe;

public class SafeLeaf extends SafeComponent{
    
	private String name;
	
	public SafeLeaf(){
		type = 1;
	}
	
	public String doSomething() {
		
		return "我是安全性组合模式中的叶子节点模式";
	}
	
	public SafeComponent getParent() {
		return parent;
	}
	
	public void setParent(SafeComponent parent) {
		this.parent  = parent;
	}
	
	public String getName() {
		return name;
	}
	
	public void SetName(String name) {
		this.name = name;
	}

}
